package com.king.framework.base.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;

import com.king.common.annotation.MvcData;
import com.king.framework.base.domain.YyTreeEntity;
import com.king.framework.base.domain.vo.AjaxResult;
import com.king.framework.base.service.YyTreeService;

public class YyTreeController<T extends YyTreeEntity> extends YyBaseController<T> {
	
    private  Logger logger = LoggerFactory.getLogger(YyTreeController.class);

    @Autowired
    public YyTreeService<T, Long> baseService;

	@MvcData("修复")
	@PostMapping(value = "/resetNodepath")
	public AjaxResult resetNodepath() throws Exception {
		logger.info("重置树路径>>>>>>>>>>>>>>>>>>>>>>>>");
		baseService.resetNodepath();
		return AjaxResult.success("操作成功");
	}
}
